/*
 * DTO.h
 *
 *  Created on: Oct 23, 2011
 *      Author: gonzalo
 */

#ifndef DTO_H_
#define DTO_H_

#include <string>
#include "utils/UtilString.h"

enum DTOTypes {IMAGE, EVENT,ASTEROIDE_STATUS, CLIENTE,SHIP_STATUS, FIN_HANDSHAKE, NEW_EXPLOSION, SHIP_ACTION, EQUIPMENT_STATUS, NEW_BONUS};


class DTO {
public:
	DTO(DTOTypes type,std::string owner);

	const DTOTypes getType() const;
	std::string getOwner() const;

	virtual std::string serializar();

	virtual ~DTO();

protected:

	virtual void deserializar(std::string& string);

private:
	DTOTypes type;
	std::string owner;
};

#endif /* DTO_H_ */
